package com.biscuit.page.basicservice.api;

import com.biscuit.common.base.BaseResponse;
import com.biscuit.page.basicservice.api.model.request.file.FileImageUploadAReq;
import com.biscuit.page.basicservice.api.model.response.file.FileImageUploadAResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author mazihao
 * @createTime 2024/4/1 9:20
 */
@Api(tags = "文件上传相关接口")
@RequestMapping("/file")
public interface IFileRemote {

    @ApiModelProperty("/图片上传")
    @PostMapping("/imageUpload")
    BaseResponse<FileImageUploadAResp> imageUpload(@RequestParam("file") MultipartFile multipartFile,
                                                   @RequestParam("req") String reqJson);

}
